package com.luna.beans;

public class Book {
    private int id;
    private String name;
    private String author;
    private int uploaderId;

    public Book(String name, String author, int uploaderId) {
        this.name = name;
        this.author = author;
        this.uploaderId = uploaderId;
    }

    public Book(int id, String name, String author, int uploaderId) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.uploaderId = uploaderId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getUploaderId() {
        return uploaderId;
    }

    public void setUploaderId(int uploaderId) {
        this.uploaderId = uploaderId;
    }

    @Override
    public String toString() {
        return "BookBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", uploaderId='" + uploaderId + '\'' +
                '}';
    }
}
